const BaseCom = resolve => {
        require.ensure(['../../BaseCom'], () => {
            resolve(require('../../BaseCom'))
        })
    }
    //单客户管理
    //import customerConfig from './components/customer'
const customerConfig = resolve => {
        require.ensure(['./components/customer'], () => {
            resolve(require('./components/customer'))
        })
    }
    //基盘查询
    //import baseConfig from './components/base'
const baseConfig = resolve => {
        require.ensure(['./components/base'], () => {
            resolve(require('./components/base'))
        })
    }
    //增加客户档案
    //import addCustomerArchivesCom from './components/addCustomerArchives'
const addCustomerArchivesCom = resolve => {
        require.ensure(['./components/addCustomerArchives'], () => {
            resolve(require('./components/addCustomerArchives'))
        })
    }
    //维系记录
    //import contactConfig from './components/contact'
const concatRecordCom = resolve => {
    require.ensure(['./components/concatRecordCom'], () => {
        resolve(require('./components/concatRecordCom'))
    })
}

//客户提醒关闭
//import reminderOff from './components/reminderOff'
const reminderOff = resolve => {
        require.ensure(['./components/reminderOff'], () => {
            resolve(require('./components/reminderOff'))
        })
    }
    //客户管理-组合查询
    //import CarBaseZhCom from './components/CarBaseZhCom'
const CarBaseZhCom = resolve => {
        require.ensure(['./components/CarBaseZhCom'], () => {
            resolve(require('./components/CarBaseZhCom'))
        })
    }
    //索赔类别管理
    //import claimManage from './customer/claimManage'
const claimManage = resolve => {
    require.ensure(['./components/claimManage'], () => {
        resolve(require('./components/claimManage'))
    })
}

// 定义子模块路由
const customerRoutes = [{
    path: 'customer',
    component: BaseCom,
    children: [
        //单客户查询
        {
            path: 'customer',
            component: customerConfig
        },
        //基盘查询
        {
            path: 'base',
            component: baseConfig
        },
        //增加客户档案
        {
            path: 'addCustomerArchives',
            component: addCustomerArchivesCom
        },
        //维系记录
        {
            path: 'contact',
            component: concatRecordCom
        },
        //客户提醒关闭
        {
            path: 'reminderOff',
            component: reminderOff
        },
        //组合查询
        {
            path: 'carzh',
            component: CarBaseZhCom
        },
        // 索赔类别管理
        {
            path: 'claim',
            component: claimManage
        },

    ]
}]

export default customerRoutes